//
//  MenuDarenZuoPIngModel.m
//  Products_B
//
//  Created by lanou on 16/6/3.
//  Copyright © 2016年 朋学友. All rights reserved.
//

#import "MenuDarenZuoPIngModel.h"

@implementation MenuDarenZuoPIngModel
- (void)setValue:(id)value forUndefinedKey:(NSString *)key{
    
}
+ (MenuDarenZuoPIngModel *)modelConfigureWithDic:(NSDictionary *)json{
   
    
    NSDictionary *dataDic = json[@"data"];
    
        MenuDarenZuoPIngModel *zuopingModel = [[self alloc]init];
       
        [zuopingModel setValuesForKeysWithDictionary:dataDic];
      
        zuopingModel.peoArray = [NSMutableArray array];
        zuopingModel.zuoPingArray = [NSMutableArray array];
        for (NSDictionary *likeDic in dataDic[@"like"]) {
            MenuDarenPeoModel *model = [[MenuDarenPeoModel alloc]init];
            [model setValuesForKeysWithDictionary:likeDic];
            [zuopingModel.peoArray addObject:model];
        }
        for (NSDictionary *relatesDic in dataDic[@"relates"]) {
            MenuDarenLiziModel *liziModel = [[MenuDarenLiziModel alloc]init];
            [liziModel setValuesForKeysWithDictionary:relatesDic];
            [zuopingModel.zuoPingArray addObject:liziModel];
        }
    zuopingModel.topic_name = dataDic[@"topics"][0][@"topic_name"];
        
   
    return zuopingModel;
}


@end
